angular.module('MusicWeb', ['ui.router', 'myUtil', 'controllers', 'routes', 'services'])

    .run(function ($rootScope, httpUtil) {
        //headImg——头像url
        $rootScope.user = {
            id: 0,
            nickname: '请登录',
            headImg: "images/no_login_head.jpg"
        };
        $rootScope.logout = function () {
            $rootScope.user.id = 0;
            $rootScope.user.nickname = '请登陆';
            $rootScope.user.headImg = 'images/no_login_head.jpg';
        };

    });
